package com.jianganming.transparent;

public abstract class Component {
    protected String name;

    public String getName() {
        return name;
    }

    public Component(String name) {
        this.name = name;
    }

    public abstract String operation(String t);

    public abstract boolean addChild(Component component);

    public abstract boolean removeChild(Component component);

    public abstract Component getChild(int index);
}
